<script src="{%$URL%}jquery-1.7.1.min.js"></script>
<script src="{%$URL%}jquery.min.js"></script>
<script type="text/javascript">
function check_seachkey(){
	var key=$("#seach_key").val();
	if(!key){
		alert("请输入查询的关键词！！！");
		return false;
		}
	}
$(function(){
	$("#nav>ul>li").hover(function(){
		$(this).find("ul").stop(true,true).show("600");
		},function(){
			$(this).find("ul").stop(true,true).hide("600");
			})
	})
</script>
<!-- top --> 
<div class="header">
  <div class="nr" style="height:44px;position:relative;">
    <div class="home"><a href="index.php"><img src="{%$URL%}images/home.jpg"></a></div>
    <div class="header_r"> 
      <a class="fr"><img src="{%$URL%}images/icon4.jpg"></a> 
      <a class="fr"><img src="{%$URL%}images/icon5.jpg"></a> 
      <a class="fr"><img src="{%$URL%}images/icon6.jpg"></a> 
      <a class="fr"><img src="{%$URL%}images/icon7.jpg"></a> 
      <a class="fr"><img src="{%$URL%}images/icon8.jpg"></a>
      <ul>
        {%if $smarty.session.user_id%} 
        <li> <a href="index.php?p=user">{%$smarty.session.user_name%}</a> 您好！ <a href="index.php?a=user_exit">[退出]</a></li>
        {%else%}<li>当前访客身份：&nbsp;游客&nbsp;</li>
        <li> <a href="index.php?p=user">登录</a> </li>
        <li> <a href="index.php?p=user_reg">注册</a> </li>
        {%/if%}
      </ul>
    </div>
  </div>
    <div class="nr" style="position:relative;">
    <div class="search">
      <a id="search"><img src="{%$URL%}images/icon9.jpg"></a>
      <form action="index.php?p=seach_list" method="post" onSubmit="return check_seachkey()">
      <div id="show" style="display: none;width:235px;">     
      <input id="seach_key" name="key" style="height:30px; width:200px; border:#FFF 1px solid" type="text" value=""/><input id="tijiao" style="height:34px; width:30px" type="submit" value="GO"/>
      </div>
      </form>   
    </div>
<script type="text/javascript">
$(function(){
  $("#search").click(function(){   
    $("#show").fadeToggle();
  });
});
</script>
    <div class="fl logo">MX营销平台</div>
    <div class="nav">
    <ul>
      {%lcmx_nav_list set="列表名:nav,类别:0,标题长度:80"%}
      {%if $nav%}
      {%foreach from=$nav item=menu%}
      <li><a href="{%$menu.link%}" target="{%$menu.target%}">{%$menu.title%}</a>
        {%lcmx_nav_list set="列表名:nav,类别:{%$menu.lc_id%},标题长度:80"%}
          {%if $nav%}
        <!-- <ul>
              {%foreach from=$nav item=submenu%}
            <li><a href="{%$submenu.link%}" target="{%$submenu.target%}">{%$submenu.title%}</a></li>
              {%/foreach%}
          </ul> -->
      {%/if%}
      </li>
      {%/foreach%}
      {%else%}暂无导航{%/if%}
    </ul>
    </div>
  </div>
</div>
<div class="banner"><img src="{%$URL%}images/banner.jpg" width="100%" height="436">
  <div class="ban_icon1"><a href="#"><img src="{%$URL%}images/icon11.png"></a></div>
  <div class="ban_icon2"><a href="#"><img src="{%$URL%}images/icon12.png"></a></div>
  <div class="nr1">
  </div>
</div>
<!-- banner -->